package classesMiolo;

import java.io.Serializable;
import java.util.Objects;

public class FichaKey implements Serializable{
    private String nPront;
    private String sus;

    public FichaKey() {
        nPront = "";
        sus = "";
    }
    
    public FichaKey(String nPront, String sus) {
        this.nPront = nPront;
        this.sus = sus;
    }

    public String getnPront() {
        return nPront;
    }

    public void setnPront(String nPront) {
        this.nPront = nPront;
    }

    public String getSus() {
        return sus;
    }

    public void setSus(String sus) {
        this.sus = sus;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 71 * hash + Objects.hashCode(this.nPront);
        hash = 71 * hash + Objects.hashCode(this.sus);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final FichaKey other = (FichaKey) obj;
        if (!Objects.equals(this.nPront, other.nPront)) {
            return false;
        }
        if (!Objects.equals(this.sus, other.sus)) {
            return false;
        }
        return true;
    }
    
}
